﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using Excel;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Reflection;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_TongHopHangTonKho : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("CboHangSanXuat")]
        private ComboBox _CboHangSanXuat;
        [AccessedThroughProperty("CboNhom")]
        private ComboBox _CboNhom;
        [AccessedThroughProperty("CmdExel")]
        private System.Windows.Forms.Button _CmdExel;
        [AccessedThroughProperty("CmdOK")]
        private System.Windows.Forms.Button _CmdOK;
        [AccessedThroughProperty("Label13")]
        private System.Windows.Forms.Label _Label13;
        [AccessedThroughProperty("Label18")]
        private System.Windows.Forms.Label _Label18;
        [AccessedThroughProperty("Label25")]
        private System.Windows.Forms.Label _Label25;
        [AccessedThroughProperty("OptHangTon")]
        private RadioButton _OptHangTon;
        [AccessedThroughProperty("OptToanBo")]
        private RadioButton _OptToanBo;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("Panel2")]
        private Panel _Panel2;
        [AccessedThroughProperty("TxtNgayChungTu")]
        private DateTimePicker _TxtNgayChungTu;
        [AccessedThroughProperty("TxtTimMa")]
        private System.Windows.Forms.TextBox _TxtTimMa;
        [AccessedThroughProperty("TxtTimMaHang")]
        private System.Windows.Forms.TextBox _TxtTimMaHang;
        [AccessedThroughProperty("TxtTimTen")]
        private System.Windows.Forms.TextBox _TxtTimTen;
        [AccessedThroughProperty("VSHangHoa")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSHangHoa;
        private DataView cFrmData;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private clsDMKho objK;

        public Frm_TongHopHangTonKho()
        {
            base.Load += new EventHandler(this.Frm_TongHopHangTonKho_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.objK = new clsDMKho();
            this.InitializeComponent();
        }

        private void CmdExel_Click(object sender, EventArgs e)
        {
            if (this.VSHangHoa.Rows.Count != 1)
            {
                try
                {
                    ApplicationClass class2 = new ApplicationClass();
                    ApplicationClass class3 = class2;
                    class3.SheetsInNewWorkbook = 1;
                    class3.Workbooks.Add(Missing.Value);
                    NewLateBinding.LateCall(class3.Worksheets[1], null, "Select", new object[0], null, null, null, true);
                    NewLateBinding.LateSetComplex(class3.Cells[1, 1], null, "value", new object[] { modGeneral.Tranlated("H\x00c0NG TỒN KHO", "") }, null, null, false, true);
                    NewLateBinding.LateSetComplex(NewLateBinding.LateGet(NewLateBinding.LateGet(class3.Cells[1, 1], null, "EntireRow", new object[0], null, null, null), null, "Font", new object[0], null, null, null), null, "Size", new object[] { "20" }, null, null, false, true);
                    NewLateBinding.LateSetComplex(class3.Cells[2, 1], null, "value", new object[] { modGeneral.Tranlated("T\x00ednh đến ng\x00e0y:", "") + this.TxtNgayChungTu.Text }, null, null, false, true);
                    int num2 = 1;
                    int num5 = this.VSHangHoa.Cols.Count - 1;
                    int num = 1;
                    while (num <= num5)
                    {
                        if (this.VSHangHoa.Cols[num].Visible)
                        {
                            NewLateBinding.LateSetComplex(class3.Cells[4, num2], null, "value", new object[] { RuntimeHelpers.GetObjectValue(this.VSHangHoa[0, num]) }, null, null, false, true);
                            NewLateBinding.LateSetComplex(NewLateBinding.LateGet(NewLateBinding.LateGet(class3.Cells[4, num2], null, "EntireRow", new object[0], null, null, null), null, "Font", new object[0], null, null, null), null, "Bold", new object[] { true }, null, null, false, true);
                            num2++;
                        }
                        num++;
                    }
                    int num6 = this.VSHangHoa.Rows.Count - 1;
                    for (int i = 2; i <= num6; i++)
                    {
                        int num3 = 1;
                        int num7 = this.VSHangHoa.Cols.Count - 1;
                        for (num = 1; num <= num7; num++)
                        {
                            if (this.VSHangHoa.Cols[num].Visible)
                            {
                                if ((num == 1) | (num == 3))
                                {
                                    NewLateBinding.LateSetComplex(class3.Cells[i + 4, num3], null, "Value", new object[] { Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject("'", this.VSHangHoa[i, num]) }, null, null, false, true);
                                }
                                else
                                {
                                    NewLateBinding.LateSetComplex(class3.Cells[i + 4, num3], null, "Value", new object[] { RuntimeHelpers.GetObjectValue(this.VSHangHoa[i, num]) }, null, null, false, true);
                                }
                                num3++;
                            }
                        }
                    }
                    class3.Visible = true;
                    class3 = null;
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    MessageBox.Show(exception.Message.ToString());
                    ProjectData.ClearProjectError();
                }
            }
        }

        private void CmdOK_Click(object sender, EventArgs e)
        {
            this.LoadData();
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_TongHopHangTonKho_Load(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                BuildComboModule.BuildCombo(this.CboNhom, modGeneral.ListDanhMuc.NhomHangHoa, true, "", "");
                BuildComboModule.BuildCombo(this.CboHangSanXuat, modGeneral.ListDanhMuc.HangSanXuat, true, "", "");
                this.LoadData();
                this.Cursor = Cursors.Default;
            }
        }

        public System.Data.DataTable GetData()
        {
            System.Data.DataTable table;
            string str = "TC";
            if (this.OptHangTon.Checked)
            {
                str = "DH";
            }
            IDataParameter[] commandParameters = new IDataParameter[6];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, modGeneral.H_CLIENT);
                commandParameters[1] = DBHelper.createParameter("@KhoaNhom", DbType.Int64, ParameterDirection.Input, LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboNhom.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim());
                commandParameters[2] = DBHelper.createParameter("@KhoaHangSanXuat", DbType.Int64, ParameterDirection.Input, LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboHangSanXuat.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim());
                commandParameters[3] = DBHelper.createParameter("@Ngay", DbType.Int64, ParameterDirection.Input, LVYModule.Date2Char(this.TxtNgayChungTu.Text));
                commandParameters[4] = DBHelper.createParameter("@Language", DbType.Int64, ParameterDirection.Input, modGeneral.H_LANGUAGE);
                commandParameters[5] = DBHelper.createParameter("@HienThi", DbType.Int64, ParameterDirection.Input, str);
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.StoredProcedure, "ST_BC_TongHopHangTonKho", commandParameters).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_TongHopHangTonKho));
            this.Panel1 = new Panel();
            this.Label25 = new System.Windows.Forms.Label();
            this.CboHangSanXuat = new ComboBox();
            this.Label18 = new System.Windows.Forms.Label();
            this.CboNhom = new ComboBox();
            this.OptToanBo = new RadioButton();
            this.OptHangTon = new RadioButton();
            this.CmdExel = new System.Windows.Forms.Button();
            this.CmdOK = new System.Windows.Forms.Button();
            this.Label13 = new System.Windows.Forms.Label();
            this.TxtNgayChungTu = new DateTimePicker();
            this.VSHangHoa = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel2 = new Panel();
            this.TxtTimMaHang = new System.Windows.Forms.TextBox();
            this.TxtTimTen = new System.Windows.Forms.TextBox();
            this.TxtTimMa = new System.Windows.Forms.TextBox();
            this.Panel1.SuspendLayout();
            this.VSHangHoa.BeginInit();
            this.Panel2.SuspendLayout();
            this.SuspendLayout();
            this.Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel1.Controls.Add(this.Label25);
            this.Panel1.Controls.Add(this.CboHangSanXuat);
            this.Panel1.Controls.Add(this.Label18);
            this.Panel1.Controls.Add(this.CboNhom);
            this.Panel1.Controls.Add(this.OptToanBo);
            this.Panel1.Controls.Add(this.OptHangTon);
            this.Panel1.Controls.Add(this.CmdExel);
            this.Panel1.Controls.Add(this.CmdOK);
            this.Panel1.Controls.Add(this.Label13);
            this.Panel1.Controls.Add(this.TxtNgayChungTu);
            this.Panel1.Dock = DockStyle.Top;
            System.Drawing.Point point = new System.Drawing.Point(0, 0);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            Size size = new Size(0x3b8, 0x2c);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 0;
            this.Label25.AutoSize = true;
            this.Label25.BackColor = Color.Transparent;
            this.Label25.ForeColor = Color.Black;
            point = new System.Drawing.Point(0x11f, 5);
            this.Label25.Location = point;
            this.Label25.Name = "Label25";
            size = new Size(0x4c, 13);
            this.Label25.Size = size;
            this.Label25.TabIndex = 90;
            this.Label25.Text = "H\x00e3ng sản xuất";
            this.CboHangSanXuat.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboHangSanXuat.FormattingEnabled = true;
            point = new System.Drawing.Point(290, 20);
            this.CboHangSanXuat.Location = point;
            this.CboHangSanXuat.Name = "CboHangSanXuat";
            size = new Size(0xda, 0x15);
            this.CboHangSanXuat.Size = size;
            this.CboHangSanXuat.TabIndex = 0x59;
            this.Label18.AutoSize = true;
            this.Label18.BackColor = Color.Transparent;
            this.Label18.ForeColor = Color.Black;
            point = new System.Drawing.Point(90, 5);
            this.Label18.Location = point;
            this.Label18.Name = "Label18";
            size = new Size(0x3e, 13);
            this.Label18.Size = size;
            this.Label18.TabIndex = 0x58;
            this.Label18.Text = "Nh\x00f3m h\x00e0ng";
            this.CboNhom.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboNhom.FormattingEnabled = true;
            point = new System.Drawing.Point(0x5b, 20);
            this.CboNhom.Location = point;
            this.CboNhom.Name = "CboNhom";
            size = new Size(0xc2, 0x15);
            this.CboNhom.Size = size;
            this.CboNhom.TabIndex = 0x57;
            this.OptToanBo.AutoSize = true;
            this.OptToanBo.BackColor = Color.Transparent;
            point = new System.Drawing.Point(0x2ab, 0x16);
            this.OptToanBo.Location = point;
            this.OptToanBo.Name = "OptToanBo";
            size = new Size(0x60, 0x11);
            this.OptToanBo.Size = size;
            this.OptToanBo.TabIndex = 0x56;
            this.OptToanBo.Text = "Liệt k\x00ea to\x00e0n bộ";
            this.OptToanBo.UseVisualStyleBackColor = false;
            this.OptHangTon.AutoSize = true;
            this.OptHangTon.BackColor = Color.Transparent;
            this.OptHangTon.Checked = true;
            point = new System.Drawing.Point(0x206, 0x15);
            this.OptHangTon.Location = point;
            this.OptHangTon.Name = "OptHangTon";
            size = new Size(0xa3, 0x11);
            this.OptHangTon.Size = size;
            this.OptHangTon.TabIndex = 0x55;
            this.OptHangTon.TabStop = true;
            this.OptHangTon.Text = "Chỉ liệt k\x00ea số lượng đặt h\x00e0ng ";
            this.OptHangTon.UseVisualStyleBackColor = false;
            this.CmdExel.Image = (Image) manager.GetObject("CmdExel.Image");
            this.CmdExel.ImageAlign = ContentAlignment.MiddleLeft;
            point = new System.Drawing.Point(0x365, 15);
            this.CmdExel.Location = point;
            this.CmdExel.Name = "CmdExel";
            size = new Size(80, 0x18);
            this.CmdExel.Size = size;
            this.CmdExel.TabIndex = 0x54;
            this.CmdExel.Text = "&Excel";
            this.CmdExel.UseVisualStyleBackColor = true;
            this.CmdOK.Image = ACCOUNTING.My.Resources.Resources.report;
            this.CmdOK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new System.Drawing.Point(0x311, 15);
            this.CmdOK.Location = point;
            this.CmdOK.Name = "CmdOK";
            size = new Size(0x52, 0x18);
            this.CmdOK.Size = size;
            this.CmdOK.TabIndex = 0x3a;
            this.CmdOK.Text = "Xem nhanh";
            this.CmdOK.TextAlign = ContentAlignment.MiddleRight;
            this.CmdOK.UseVisualStyleBackColor = true;
            this.Label13.AutoSize = true;
            this.Label13.BackColor = Color.Transparent;
            point = new System.Drawing.Point(3, 4);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x4e, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 0x39;
            this.Label13.Text = "T\x00ednh đến ng\x00e0y";
            this.TxtNgayChungTu.Format = DateTimePickerFormat.Short;
            point = new System.Drawing.Point(3, 20);
            this.TxtNgayChungTu.Location = point;
            this.TxtNgayChungTu.Name = "TxtNgayChungTu";
            size = new Size(0x52, 20);
            this.TxtNgayChungTu.Size = size;
            this.TxtNgayChungTu.TabIndex = 0x38;
            this.VSHangHoa.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSHangHoa.ColumnInfo = manager.GetString("VSHangHoa.ColumnInfo");
            this.VSHangHoa.Dock = DockStyle.Fill;
            this.VSHangHoa.ExtendLastCol = true;
            this.VSHangHoa.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new System.Drawing.Point(0, 0x2c);
            this.VSHangHoa.Location = point;
            Padding padding = new Padding(0);
            this.VSHangHoa.Margin = padding;
            this.VSHangHoa.Name = "VSHangHoa";
            this.VSHangHoa.Rows.Count = 2;
            this.VSHangHoa.Rows.DefaultSize = 0x11;
            this.VSHangHoa.Rows.Fixed = 2;
            size = new Size(0x3b8, 0x1fa);
            this.VSHangHoa.Size = size;
            this.VSHangHoa.StyleInfo = manager.GetString("VSHangHoa.StyleInfo");
            this.VSHangHoa.TabIndex = 0x12;
            this.VSHangHoa.VisualStyle = VisualStyle.Office2007Blue;
            this.Panel2.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel2.BackgroundImageLayout = ImageLayout.Stretch;
            this.Panel2.Controls.Add(this.TxtTimMaHang);
            this.Panel2.Controls.Add(this.TxtTimTen);
            this.Panel2.Controls.Add(this.TxtTimMa);
            this.Panel2.Dock = DockStyle.Bottom;
            point = new System.Drawing.Point(0, 550);
            this.Panel2.Location = point;
            this.Panel2.Name = "Panel2";
            size = new Size(0x3b8, 0x23);
            this.Panel2.Size = size;
            this.Panel2.TabIndex = 0x58;
            point = new System.Drawing.Point(0x153, 4);
            this.TxtTimMaHang.Location = point;
            this.TxtTimMaHang.Name = "TxtTimMaHang";
            size = new Size(0x58, 20);
            this.TxtTimMaHang.Size = size;
            this.TxtTimMaHang.TabIndex = 2;
            point = new System.Drawing.Point(0x72, 4);
            this.TxtTimTen.Location = point;
            this.TxtTimTen.Name = "TxtTimTen";
            size = new Size(0xdd, 20);
            this.TxtTimTen.Size = size;
            this.TxtTimTen.TabIndex = 1;
            point = new System.Drawing.Point(3, 4);
            this.TxtTimMa.Location = point;
            this.TxtTimMa.Name = "TxtTimMa";
            size = new Size(0x6b, 20);
            this.TxtTimMa.Size = size;
            this.TxtTimMa.TabIndex = 0;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x3b8, 0x249);
            this.ClientSize = size;
            this.Controls.Add(this.VSHangHoa);
            this.Controls.Add(this.Panel1);
            this.Controls.Add(this.Panel2);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MinimizeBox = false;
            this.Name = "Frm_TongHopHangTonKho";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "KH-BC02";
            this.Text = "TONG HOP TON KHO";
            this.Panel1.ResumeLayout(false);
            this.Panel1.PerformLayout();
            this.VSHangHoa.EndInit();
            this.Panel2.ResumeLayout(false);
            this.Panel2.PerformLayout();
            this.ResumeLayout(false);
        }

        public void LoadData()
        {
            int num;
            System.Data.DataTable data = new System.Data.DataTable();
            data = this.GetData();
            this.cFrmData = new DataView(data);
            C1.Win.C1FlexGrid.C1FlexGrid vSHangHoa = this.VSHangHoa;
            vSHangHoa.DataSource = this.cFrmData;
            vSHangHoa.Cols[0].Visible = false;
            vSHangHoa.Cols[1].Caption = modGeneral.Tranlated("M\x00e3", "");
            vSHangHoa.Cols[2].Caption = modGeneral.Tranlated("T\x00ean h\x00e0ng", "");
            vSHangHoa.Cols[3].Caption = modGeneral.Tranlated("H\x00e3ng SX", "");
            vSHangHoa.Cols[4].Caption = modGeneral.Tranlated("ĐVT", "");
            int num2 = vSHangHoa.Cols.Count - 2;
            for (num = 5; num <= num2; num++)
            {
                this.objK.Load(LVYModule.sRight(vSHangHoa.Cols[num].Caption.Trim(), 15));
                if (modGeneral.H_LANGUAGE == "VIET")
                {
                    vSHangHoa.Cols[num].Caption = this.objK.TenViet.Trim();
                }
                else
                {
                    vSHangHoa.Cols[num].Caption = this.objK.TenAnh.Trim();
                }
                vSHangHoa.Cols[num].Width = 80;
                vSHangHoa.Cols[num].DataType = System.Type.GetType("System.Decimal");
                vSHangHoa.Cols[num].Format = modGeneral.H_FORMATNUMBER;
            }
            vSHangHoa.Cols[vSHangHoa.Cols.Count - 2].Caption = modGeneral.Tranlated("Tổng cộng", "");
            vSHangHoa.Cols[vSHangHoa.Cols.Count - 2].DataType = System.Type.GetType("System.Decimal");
            vSHangHoa.Cols[vSHangHoa.Cols.Count - 2].Format = modGeneral.H_FORMATNUMBER;
            vSHangHoa.Cols[vSHangHoa.Cols.Count - 1].Caption = modGeneral.Tranlated("Số lượng đặt", "");
            vSHangHoa.Cols[vSHangHoa.Cols.Count - 1].DataType = System.Type.GetType("System.Decimal");
            vSHangHoa.Cols[vSHangHoa.Cols.Count - 1].Format = modGeneral.H_FORMATNUMBER;
            vSHangHoa.Cols[1].Width = 100;
            vSHangHoa.Cols[2].Width = 250;
            vSHangHoa.Cols[3].Width = 150;
            vSHangHoa.Cols[4].Width = 80;
            vSHangHoa.Cols[5].Width = 80;
            vSHangHoa.AllowMerging = AllowMergingEnum.FixedOnly;
            int num3 = vSHangHoa.Cols.Count - 1;
            for (num = 1; num <= num3; num++)
            {
                vSHangHoa[1, num] = RuntimeHelpers.GetObjectValue(vSHangHoa[0, num]);
                vSHangHoa.Cols[num].AllowMerging = true;
                vSHangHoa.Cols[num].TextAlignFixed = TextAlignEnum.CenterCenter;
            }
            vSHangHoa.Styles.Alternate.BackColor = ProfessionalColors.ToolStripGradientMiddle;
            vSHangHoa = null;
        }

        private void TxtTimMa_TextChanged(object sender, EventArgs e)
        {
            string str = "";
            if (this.TxtTimMa.Text.Trim() != "")
            {
                str = "Ma LIKE '%" + this.TxtTimMa.Text + "%'";
            }
            this.cFrmData.RowFilter = str;
            C1.Win.C1FlexGrid.C1FlexGrid vSHangHoa = this.VSHangHoa;
            vSHangHoa.Cols[1].Width = 100;
            vSHangHoa.Cols[2].Width = 250;
            vSHangHoa.Cols[3].Width = 150;
            vSHangHoa.Cols[4].Width = 80;
            vSHangHoa.Cols[5].Width = 80;
            vSHangHoa = null;
        }

        private void TxtTimTen_TextChanged(object sender, EventArgs e)
        {
            string str = "";
            if (this.TxtTimTen.Text.Trim() != "")
            {
                str = "TenHang LIKE '%" + this.TxtTimTen.Text + "%'";
            }
            this.cFrmData.RowFilter = str;
            C1.Win.C1FlexGrid.C1FlexGrid vSHangHoa = this.VSHangHoa;
            vSHangHoa.Cols[1].Width = 100;
            vSHangHoa.Cols[2].Width = 250;
            vSHangHoa.Cols[3].Width = 150;
            vSHangHoa.Cols[4].Width = 80;
            vSHangHoa.Cols[5].Width = 80;
            vSHangHoa = null;
        }

        internal virtual ComboBox CboHangSanXuat
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboHangSanXuat;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboHangSanXuat = value;
            }
        }

        internal virtual ComboBox CboNhom
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboNhom;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboNhom = value;
            }
        }

        internal virtual System.Windows.Forms.Button CmdExel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdExel_Click);
                if (this._CmdExel != null)
                {
                    this._CmdExel.Click -= handler;
                }
                this._CmdExel = value;
                if (this._CmdExel != null)
                {
                    this._CmdExel.Click += handler;
                }
            }
        }

        internal virtual System.Windows.Forms.Button CmdOK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdOK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdOK_Click);
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click -= handler;
                }
                this._CmdOK = value;
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click += handler;
                }
            }
        }

        internal virtual System.Windows.Forms.Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual System.Windows.Forms.Label Label18
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label18;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label18 = value;
            }
        }

        internal virtual System.Windows.Forms.Label Label25
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label25;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label25 = value;
            }
        }

        internal virtual RadioButton OptHangTon
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OptHangTon;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._OptHangTon = value;
            }
        }

        internal virtual RadioButton OptToanBo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OptToanBo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._OptToanBo = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel Panel2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel2 = value;
            }
        }

        internal virtual DateTimePicker TxtNgayChungTu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayChungTu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayChungTu = value;
            }
        }

        internal virtual System.Windows.Forms.TextBox TxtTimMa
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTimMa;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtTimMa_TextChanged);
                if (this._TxtTimMa != null)
                {
                    this._TxtTimMa.TextChanged -= handler;
                }
                this._TxtTimMa = value;
                if (this._TxtTimMa != null)
                {
                    this._TxtTimMa.TextChanged += handler;
                }
            }
        }

        internal virtual System.Windows.Forms.TextBox TxtTimMaHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTimMaHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTimMaHang = value;
            }
        }

        internal virtual System.Windows.Forms.TextBox TxtTimTen
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTimTen;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtTimTen_TextChanged);
                if (this._TxtTimTen != null)
                {
                    this._TxtTimTen.TextChanged -= handler;
                }
                this._TxtTimTen = value;
                if (this._TxtTimTen != null)
                {
                    this._TxtTimTen.TextChanged += handler;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSHangHoa
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSHangHoa;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._VSHangHoa = value;
            }
        }
    }
}

